// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from '@/server/axios'
import dayjs from 'dayjs'
import {Button, Input, Toast, Font, Notification} from 'martin-ui'
import { Table, Modal, Radio, RadioGroup } from 'iview'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import 'iview/dist/styles/iview.css'
import '@/assets/css/common.css'
import '@/assets/font/iconfont.css'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(Button)
Vue.use(Input)
Vue.use(Toast)
Vue.use(Font)
Vue.use(Axios)
Vue.use(Notification)
Vue.use(mavonEditor)
Vue.component('Table', Table)
Vue.component('Modal', Modal)
Vue.component('Radio', Radio)
Vue.component('RadioGroup', RadioGroup)
Vue.config.productionTip = false
Vue.prototype.$day = dayjs

window.log = console.log

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
